package com.xcf.controller.business.putbox;

import cn.com.xcf.dao.model.FactBookingCargo;
import cn.com.xcf.dao.model.FactBookingNote;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.xcf.controller.base.BaseController;
import com.xcf.entity.Page;
import com.xcf.service.business.bookingcargo.BookingCargoService;
import com.xcf.util.ResponseResult;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;
import java.util.Map;

@Controller
@RequestMapping(value = "/putbox")
public class PutBoxController extends BaseController {

	@Autowired
	private BookingCargoService bookingCargoService;


	//点击保存按钮
	@RequestMapping(value="list")
	@ResponseBody
	public ResponseResult list(int page){
		PageHelper.startPage(page, 35);
		List<Map> list = bookingCargoService.queryByPage(null);
		return ResponseResult.success(new PageInfo(list));
	}


}
